﻿<%@ Page language="vb" Inherits="Mysoft.Map.Web.Controls.Lookup.LookupSinglePage" CodeBehind="Mysoft.Map.Application.Components.dll" %>
<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>
<%@ Import Namespace="Mysoft.Map.Web.Controls.Lookup"%>
<html>
<head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"/>

<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css">
<link rel="stylesheet" type="text/css" href="/_common/styles/dialogs.css">
<script language="javascript" src="/_controls/settings.aspx"></script>
<script language="javascript" src="/_forms/addrelated.js"></script>
<script language="javascript" src="/_controls/util/util.js"></script>
<script language="javascript" src="/_controls/number/number.js"></script>
<link rel="stylesheet" type="text/css" href="/_common/styles/select.css">
<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
<script language="javascript" src="/_controls/util/util.js"></script>
<script language="javascript" src="/_common/scripts/global.js"></script>
<title>查找记录</title>

<link rel="stylesheet" type="text/css" href="/_nav/menu.css">

	<link rel="stylesheet" type="text/css" href="lookupdialogs.css">
	<script language="javascript" src="map_lookupdialogs.js"></script>
	
	<script language="javascript">
<%
		RenderCreatePrivileges()
%>	
		_mode = <%=CType(Mode, Integer)%>;
	
		function applychanges()
		{
			selectItem();
		}
		
		function cancel()
		{
			window.close();
		}
		
		function window.onload()
		{ 
			if ( !checkMode( _mode, LookupBrowse ) )
			{
				findValue.focus();
			}
			else
			{
				frmResults.focus();	
			}
		}
	
		function resultsReady()
		{
			if ( frmResults.document.readyState == "complete" )
			{
				document.body.style.cursor = "auto";

				if ( !checkMode( _mode, LookupBrowse ) )
				{
					btnGo.disabled = false;
				}
				
				setNavigationState();
			}
		}

		function selectItem()
		{
			if (frmResults.tblResults != undefined)
			{
				if( frmResults.tblResults.selectedItems )
				{
					window.returnValue = buildReturnValue( frmResults.tblResults.selectedItems );
					window.close();
				}
			}
			else
			{
				window.close();
			}
		}
		
		function appendSelected()
		{
			selectItem();
		}
		
		function setNavigationState()
		{
		}
	
	</script>
</head>

<body>
	<table style="width:100%; height:100%;" cellspacing="0" cellpadding="0">
		<tr><td colspan="2" class="header">
			<div class="header">查找记录</div>
			<div class="headerdesc"><% ShowDescription() %></div>
		</td></tr>
		<tr>
			<td colspan="2" style="height:100%;">
				<div class="main" ><div id="divWarning">

		<table cellspacing="0" cellpadding="0" width="100%" height="100%">
			<tr>
				<td class="search">
					<% RenderSearchHeader() %>
				</td>
			</tr>
			<tr>
				<td>
					<table height="100%" width="100%" id="tblFind" cellpadding="0" cellspacing="0">
						<col width="30">

						<tr height="20">
							<td>可用记录:</td>
						</tr>

						<tr>
							<td colspan="3" style="padding-top: 5px">
								<% RenderResultsFrame() %>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

	</div></div><div id='divFillBg'	style='display:none;position:absolute;top:80px;left:20px;height:23px;width:355px;background-color:#ffffff;'>&nbsp;</div><div id='divFill'	style='display:none;position:absolute;top:80px;left:20px;height:23px;width:0px;filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#00ff00, EndColorStr=#00cc00);'>&nbsp;</div><div id='divStatus'	style='display:none;position:absolute;top:80px;left:19px;height:23px;width:357px;'><img src='/_imgs/statusbar.gif' height='23' width='357'></div></td></tr><tr><td class="footer">&nbsp;</td><td align="right" class="footer"><button id="butBegin" onclick="applychanges();">确定</button>&nbsp;<button id="cmdDialogCancel" onclick="cancel();">取消</button></td></tr></table>
</body>
</html>
